import txios from '../../index'

enum DashboardAPI {
  categoryGoodsCount = '/goods/category/count',
  categoryGoodsSale = '/goods/category/sale',
  categoryGoodsFavor = '/goods/category/favor',
  addressGoodsSale = '/goods/address/sale'
}

export function getCategorygoodsCount() {
  return txios.get({
    url: DashboardAPI.categoryGoodsCount
  })
}
export function getCategorygoodsSale() {
  return txios.get({
    url: DashboardAPI.categoryGoodsSale
  })
}
export function getCategorygoodsFavor() {
  return txios.get({
    url: DashboardAPI.categoryGoodsFavor
  })
}
export function getCategoryAddressSale() {
  return txios.get({
    url: DashboardAPI.addressGoodsSale
  })
}
